<?php $this->_extends('_layouts/adminblind_layout'); ?>

<?php $this->_block('title'); ?> - 主机管理<?php $this->_endblock(); ?>
<?php $this->_block('conpno'); ?>0<?php $this->_endblock(); ?>

<?php $this->_block('jscript'); ?>
<script type="text/javascript" src="<?php echo $_BASE_DIR; ?>scripts/mootools-1.2.2-core.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR; ?>scripts/mootools-1.2.2.2-more.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR; ?>scripts/checkall.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
      
		//alert('121212');
		jQuery('#Form_AdminToGroup').ajaxForm({
				target: '#tip_h',
				success: function(a) {
					jQuery('#tip_h').show();
					jQuery('#tip_h').html(a);
					//jQuery('.goblank').val('');
					//freshhostgroup();
					//alert('成功!');
				}
		});
      
    });
</script>
<?php $this->_endblock('jscript'); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started" alt="绑定组管理员">
		<table style="width:200px;margin-bottom:10px;" class="hm_admin">
		<tr><th><input type="checkbox" id="course" onclick="checkItems('course', 'course');allchecked('userid');"/> 全选</th><th>用户名</th></tr>
		<?php foreach ($group as $s): ?>
		<?php $allcc++;if($allcc%10==1):?>
		<table style="width:200px;margin-bottom:10px;margin-left:5px;" class="hm_admin">
		<tr><th><input type="checkbox" id="course" onclick="checkItems('course', 'course');allchecked('userid');"/> 全选</th><th>用户名</th></tr>
		<?php endif; ?>

		<tr><td><input type="checkbox" class="check-me" name="course" value="<?php echo $s->user_id;?>" onclick="allchecked('userid');"/></td><td><?php echo $s->user_name;?></td></tr>
		<?php endforeach; ?>
		
		</table>
		<?php $this->_element('admintogroup_simple',array('form'=>$form)); ?>
	</div>

<?php $this->_endblock('contents'); ?>